local unitDefs = {

C_SHIPYARD = {
  name                = "Shipyard",
  description         = "Produces Ships",
  
  objectName          = "armsy",  --"c_shipyard.s3o",
  script              = "armsy.cob",  --"c_shipyard.cob",  
  buildPic            = "armsy.png",  --"c_shipyard.png",
  iconType            = "building",  
  category            = [[WATER BUILDING WEAPON CTRL_F]],  --LEVEL1 NOTAIR
  TEDClass            = "PLANT", 
  
  -- Cost
  buildCostMetal      = 2000,  
  buildCostEnergy     = 0,
  buildTime           = 20000,

  -- Resources
  metalMake           = 100, --5,  
  metalStorage        = 1000,
	
  -- Construction
  builder             = true,
  workerTime          = 3000, --300,  
  buildAngle          = 8000, --?
  buildoptions = {
    "c_extractorcon",
    "c_mediumcon",
    "c_heavycon",
    "c_com",
    "c_escortship",
    "c_destroyer",
    "c_aacruiser",
    "c_cruiser",
    "c_monitor",
    "c_battlecruiser",
    "c_battleship",
  },	
	
  -- Damage
  maxDamage           = 10000,
  idleAutoHeal        = 5,
  idleTime            = 900,

  -- Collision Volume
  collisionVolumeType    = "Box", 
  collisionVolumeTest    = 1,  
  collisionVolumeOffsets = [[-2 0 -3]],
  collisionVolumeScales  = [[116 60 116]],
  --modelCenterOffset      = [[0 0 0]],
  
  -- Movement and Pathfinding
  footprintX          = 8,
  footprintZ          = 8,
  yardMap             = [[wCCCCCCwCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCwCCCCCCw]],  
  maxVelocity         = 0,
  minWaterDepth       = 15,
  waterLine           = 10, --??  
 
  -- Ground Decal
  useBuildingGroundDecal = false, 

  -- Abilities
  canMove             = true,  
  canAttack           = true,
  canGuard            = true,
  canPatrol           = true,
  activateWhenBuilt   = true, 

  -- Detection  
  sightDistance       = 650,
  radarDistance       = 1400,  
  sonarDistance       = 650,  
  seismicSignature    = 0,
	activateWhenBuilt   = true,  

  -- Weapons
  explodeAs           = "UNIT_EXPLOSION_LARGE1",  
  selfDestructAs      = "UNIT_SELFD_LARGE1", 
  --noChaseCategory     = [[BUILDING TANK SHIP SUB PLANE HELICOPTER]],  

  weapons = {
    [1] = "C_CANNON_AA_2BARRELS",    
    [2] = "C_CANNON_AUTOCANNON_2BARRELS",
  },
  
  sfxtypes = {
    explosiongenerators = {
      "custom:PLASMABALL10",
    },
  },  

  customParams = {
    wreckModels = { "armsy_dead.3do", "armsy_dead.3do" },
    heapModels = { "3x3d.3do" },

	  soundCategory = "SHIPYARD1",
  
	  armorThickness = 30,
	
	  lightDamageChance = 0.2,	
	  mediumDamageChance = 0.6,
	  heavyDamageChance = 0.2,
  },
},
}

return lowerkeys(unitDefs)